<?php

use Illuminate\Database\Seeder;
class AdminQuestionsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
		$data = [];
        for ($i=0; $i < 100; $i++) { 
        	$tem['question_name'] = str_random(20);
        	// $tem['price'] = rand(100,10000);
        	$tem['user_id'] = rand(1,100);
        	$tem['topic_id'] = rand(1,100);
        	// $tem['pic'] = '/uploads/c5e347f8f356ac67c48a43aaf9d8170a.jpg';
        	// $tem['status'] = 1;
        	// $tem['cate_id'] = rand(1,10);
        	$data[] = $tem;
        }

   	 	DB::table('question')->insert($data);
    }

}
